﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WcfServiceLibrary1
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IService1
    {
        

        [OperationContract]
        List<TD_LogDA_entry> getTD_LogDA();
        // TODO: Add your service operations here
    }

    // Use a data contract as illustrated in the sample below to add composite types to service operations.
    // You can add XSD files into the project. After building the project, you can directly use the data types defined there, with the namespace "WcfServiceLibrary1.ContractType".
    [DataContract]
    public class TD_LogDA_entry
    {
        int _IDThayDoi;
        int _SoBNhan;
        string _NoiDungTruocTD;
        string _TenTruongTD;
        string _NoiDungSauTD;

        [DataMember]
        public int IDThayDoi
        {
            get { return _IDThayDoi; }
            set { _IDThayDoi = value; }
        }

        [DataMember]
        public int SoBNhan
        {
            get { return _SoBNhan; }
            set { _SoBNhan = value; }
        }

        [DataMember]
        public string NoiDungTruocTD
        {
            get { return _NoiDungTruocTD; }
            set { _NoiDungTruocTD = value; }
        }
        [DataMember]
        public string TenTruongTD
        {
            get { return _TenTruongTD; }
            set { _TenTruongTD = value; }
        }
        [DataMember]
        public string NoiDungSauTD
        {
            get { return _NoiDungSauTD; }
            set { _NoiDungSauTD = value; }
        }
    }
}
